Skip to content

Cleanup and formatting#53

Merged
rameel merged 2 commits intomainfrom
maintenance
Apr 2, 2026
Merged

Cleanup and formatting#53
rameel merged 2 commits intomainfrom
maintenance

Conversation

@rameel
Copy link
Copy Markdown
Owner

@rameel rameel commented Apr 2, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on minor cleanup/formatting in the IFileInfo extension helpers, primarily refactoring the internal read loops and simplifying a few call sites.

Changes:

  • Simplified stream-length detection by inlining stream.CanSeek ? stream.Length : 0 (removing the prior helper).
  • Refactored read loops to use total counters and simplified loop structure in both sync/async byte-reading paths.
  • Minor call-site cleanup using named arguments for overload forwarding.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rameel rameel merged commit e7964b2 into main Apr 2, 2026
3 checks passed
@rameel rameel deleted the maintenance branch April 2, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants